package com.tnl.app.service;

import java.util.List;

import com.tnl.app.entity.RecommendPosition;
import com.tnl.app.entity.Recommendation;
import com.tnl.app.entity.RecommendedPerson;
import com.tnl.app.entity.SelfRecommendPosition;

public interface IRecommendService {

	public Recommendation getRecommendationByID(Integer id);

	public List<Recommendation> getAllRecommendation();

	public int createRecommendation(Recommendation recommend);

	public void deleteById(Integer Id);

	public void updateRecommendation(Recommendation emp);

	public List<Recommendation> getSelfRecommendations(Integer personId, int offset);

	public List<Recommendation> getRecommendationsByCreater(Integer personId,
			int offset);
	
	public List<RecommendedPerson> getRecommendedPersonByPositionAndCreater(int platformid, Integer personId, Integer jobId, int start);

	public List<RecommendedPerson> getRecommendedPersonByPositionAndCreater2(int platformid, Integer personId, Integer jobId, int start);

	public List<RecommendPosition> getRecommendPositionByCreater(int platformid, Integer personId, int start);
	
	public List<Recommendation> searchRecommenbyJobandPerson(Integer jobId, String openId, int platformid);

	public List<SelfRecommendPosition> getSelfRecommendPositionByCreater(int personId, int start);

	public void updateRecommendationResource(Recommendation recommend);
	
	public void updateRecommendationAudioResource(Recommendation recommend);
	
	public boolean isAlreadySelfRecommended(int jobId, int personId);
	
	public boolean isAlreadyRecommended(int jobId, String mobile, int platformid);
	}

